onprem_diag
Configuration for OnpremDiag resource.
Read/write properties
adm<String>
check if is ADM reachable.
Minimum length = 1
Maximum length = 255
download_connectivity_status<Integer>
Status of download URL check. Returns 0 for success and non-zero for failure.
download_connectivity_error_details<String>
Error encountered during download connectivity check.
id<String>
ID of Security Advisory scan.
end_time<Double>
End time of diagnostics test.
is_user_triggered<Boolean>
is triggered by user.
safehaven_connectivity_status<Integer>
Status of Safehaven connectivity. Returns 0 for success and non-zero for failure.
status<String>
Diagnostics status.
Minimum length = 1
Maximum length = 255
safehaven<String>
check if is Safehaven reachable.
Minimum length = 1
Maximum length = 255
download<String>
Check if Download server is reachable.
Minimum length = 1
Maximum length = 255
safehaven_connectivity_error_details<String>
Error encountered during safehaven connectivity check.
start_time<Double>
Start time of diagnostics test.
managed_device_status<String>
Devices list with IP Address and status.
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/onprem_diag?onerror=<String_value>
HTTPS Method:POST
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"onprem_diag": {
"id":<String_value>,
"safehaven":<String_value>,
"download_connectivity_error_details":<String_value>,
"end_time":<Double_value>,
"adm":<String_value>,
"managed_device_status":<String_value>,
"status":<String_value>,
"safehaven_connectivity_status":<Integer_value>,
"is_user_triggered":<Boolean_value>,
"download":<String_value>,
"start_time":<Double_value>,
"download_connectivity_status":<Integer_value>,
"safehaven_connectivity_error_details":<String_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "onprem_diag":[{
"adm":<String_value>,
"download_connectivity_status":<Integer_value>,
"download_connectivity_error_details":<String_value>,
"id":<String_value>,
"end_time":<Double_value>,
"is_user_triggered":<Boolean_value>,
"safehaven_connectivity_status":<Integer_value>,
"status":<String_value>,
"safehaven":<String_value>,
"download":<String_value>,
"safehaven_connectivity_error_details":<String_value>,
"start_time":<Double_value>,
"managed_device_status":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/onprem_diag
Query-parameters:
filter
https://<MGMT-IP>/nitro/v2/config/onprem_diag?filter=property-name1:property-value1,property-name2:property-value2
Use this query-parameter to get the filtered set of onprem_diag resources configured on the system. You can set a filter on any property of the resource.
pagesize=#no&pageno=#no
https://<MGMT-IP>/nitro/v2/config/onprem_diag?pagesize=#no&pageno=#no
Use this query-parameter to get the onprem_diag resources in chunks.
count
https://<MGMT-IP>/nitro/v2/config/onprem_diag?count=yes
Use this query-parameter to get the count of onprem_diag resources.
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "onprem_diag":[{
"adm":<String_value>,
"download_connectivity_status":<Integer_value>,
"download_connectivity_error_details":<String_value>,
"id":<String_value>,
"end_time":<Double_value>,
"is_user_triggered":<Boolean_value>,
"safehaven_connectivity_status":<Integer_value>,
"status":<String_value>,
"safehaven":<String_value>,
"download":<String_value>,
"safehaven_connectivity_error_details":<String_value>,
"start_time":<Double_value>,
"managed_device_status":<String_value>}]}